import java.util.Scanner;

public class A {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		System.out.println("请输入底数");
		int a=scanner.nextInt();
		System.out.println("请输入幂");
		int b=scanner.nextInt();
		System.out.println("幂函数值是"+mi(a,b));
	}
	public static int mi(int a,int b) {
		int c=1;
		for (int i = 1; i <= b; i++) {
			c=c*a;
		}
		return c;
	}
}
